<script setup lang="ts">
const emit = defineEmits(["ok", "cancel"]);
</script>
<template>
  <Mask>
    <div
      class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-white rounded border shadow p-6 min-w-64"
    >
      <div><slot>确认信息</slot></div>
      <div class="flex justify-end gap-x-2 mt-6">
        <Button color="primary" @click="emit('ok')">确定</Button>
        <Button @click="emit('cancel')">取消</Button>
      </div>
    </div>
  </Mask>
</template>
